<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title></title>
  </head>
  <body>
    <!-- bootstrap-switch -->
    <link href="ref/bootstrap.css" rel="stylesheet">
    <link href="ref/bootstrap-switch.min.css" rel="stylesheet">
    <script src="ref/jquery-1.7.2.min.js"></script>
    <script src="ref/bootstrap-switch.min.js"></script>

    <script src="protobuf.js"></script>
    <script src="NettyConn.js"></script>
    <form onsubmit="return false;">
        <input type="text" name="message" value="light">
        <input  type="button" value="发送消息" onclick="send(this.form.message.value)">
        <br/>
        <input id="lightSwitch" type="checkbox" name="my-checkbox" checked="checked" onchange="isCheck()">
        <h3>输出：</h3>
        <textarea id="responseText" style="width: 500px; height: 300px;"></textarea>
        <input type="button" onclick="javascript:document.getElementById('responseText').value=''" value="清空">
    </form>
  </body>
  <script type="text/javascript">
    $("[name='my-checkbox']").bootstrapSwitch();
  </script>
</html>
